﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>
    <table>
        <tr>
            <th>
                Mã loại sản phẩm
            </th>
            <th>
                Tên Loại
            </th>
            <th></th>

        </tr>
        <%foreach (var item in Model)
          { %>
        <tr>
            <td>
                <%=Html.Encode(item.maloai)%>
            </td>
            <td>
                <%=Html.Encode(item.tenloai)%>
            </td>
            <td>
                <%= Html.ActionLink("Edit", "edit", new { id = item.maloai })%>||
                <%= Html.ActionLink("Details", "details", new { id = item.maloai })%>||
                <%= Html.ActionLink("Del", "delete", new { id = item.maloai })%>
            </td>
        </tr>
        <%} %>
    </table>
    <p>
        <%=Html.ActionLink("Add new", "create") %>
    </p>

</asp:Content>
